import request from '@/utils/request'

// 查询人员从业资格列表
export function listRequirements(query) {
  return request({
    url: '/system/requirements/list',
    method: 'get',
    params: query
  })
}

// 查询人员从业资格详细
export function getRequirements(requirementId) {
  return request({
    url: '/system/requirements/' + requirementId,
    method: 'get'
  })
}

// 新增人员从业资格
export function addRequirements(data) {
  return request({
    url: '/system/requirements',
    method: 'post',
    data: data
  })
}

// 修改人员从业资格
export function updateRequirements(data) {
  return request({
    url: '/system/requirements',
    method: 'put',
    data: data
  })
}

// 删除人员从业资格
export function delRequirements(requirementId) {
  return request({
    url: '/system/requirements/' + requirementId,
    method: 'delete'
  })
}

// 导出人员从业资格
export function exportRequirements(query) {
  return request({
    url: '/system/requirements/export',
    method: 'get',
    params: query
  })
}

// 查询驾驶员列表
export function selectDriverList(query) {
  return request({
    url: '/system/requirements/selectDriverList',
    method: 'get',
    params: query
  })
}
